bitkeeper revision 1.1730 (42ba7dbdkTADQfBqHaC_Ynqo3i1ZVw)
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 23 Jun 2005 09:15:41 +0000 (09:15 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 23 Jun 2005 09:15:41 +0000 (09:15 +0000)
commit61724bdcde2b4c894b7650799dca5ac93a1bd6ba
treedb5a6ad1374777a83b8c2bdf879f5838d385883c
parentdee0a637a46b5a915b532a80a5381ebf9c35822c
bitkeeper revision 1.1730 (42ba7dbdkTADQfBqHaC_Ynqo3i1ZVw)

The xc_domain_getinfo does not clear the info structure before filling
it in, and in some circumstances it doesn't completely fill in the
structure for each domain.  In particular, it sets the crashed flag if
the domain has crashed, but does not clear it if the domain has not
crashed, so the crashed flag may be random stack garbage from the
calling program.  With the attached patch (against the latest nightly),
xc_domain_getinfo zeroes the array of info structures before filling
them in.

Signed-off-by: Josh Triplett <josht@us.ibm.com>
tools/libxc/xc_domain.c